***********************************************
* Replication Material For II Joo & Mukherjee *
*              Main Paper Analysis            *  
*            Software Used: STATA 16          *
* Use II_Joo_Mukherjee.dta for replication    *
***********************************************
use II_Joo_Mukherjee

***************************
**** Table 1 Main Text ****
***************************
xtset rebid year

* Model 1
xtprobit split centtime cent dur_exist t1 t2 t3, re vce(cluster rebid) 

* Model 2
xtprobit split split_lag centtime cent dur_exist negotiation ceasefire rstrength t1 t2 t3, re vce(cluster rebid) 

* Model 3 
xtprobit split split_lag centtime cent dur_exist negotiation ceasefire rstrength terr mobilize t1 t2 t3, re vce(cluster rebid) 

* Model 4
xtprobit split split_lag centtime cent dur_exist negotiation ceasefire rstrength terr mobilize independence logbd logbd2 t1 t2 t3, re vce(cluster rebid) 


**********************************************
**** Table 2: Main Paper Robustness Check ****
**********************************************

* Model 5 Add external support
xtprobit split split_lag centtime cent dur_exist negotiation ceasefire rstrength terr mobilize independence logbd logbd2 ext t1 t2 t3, re vce(cluster rebid) 


* Model 6 Previous conflict and number of groups in conflict 
xtprobit split  centtime cent dur_exist negotiation ceasefire rstrength terr mobilize independence logbd logbd2 prev_split ngroup_country polwing t1 t2 t3, re vce(cluster rebid) 


* Model 7 Add one-sided violence/sexual violence
xtprobit split split_lag centtime cent dur_exist negotiation ceasefire rstrength terr mobilize independence logbd logbd2 ngroup_country polwing state_svac_reb_lag log_os_reb log_os_gov t1 t2 t3, re vce(cluster rebid)

* Model 8 Model excluding rebel group with most number of splits
sort rebid year
by rebid: egen total_split = total(split)

drop if dyadid==333 | dyadid==442

* run the model again 
xtset rebid year

xtprobit split split_lag centtime cent dur_exist negotiation ceasefire rstrength terr mobilize independence logbd logbd2 t1 t2 t3, re vce(cluster rebid) 


* end of do file *

